package org.zlw;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.zlw.model.bean.A;
import org.zlw.model.bean.Car;
import org.zlw.processor.AProcessor;

/**
 * (C) Copyright of  All Rights Reserved.
 * <p>
 * Project：${PROJECT_NAME}
 * <p>
 * File: ${NAME}
 * Package: org.springframework
 *
 * @author zlw
 * @date ${DATE}, ${YEAR}
 * @since 1.0.0
 */
public class MyApplication {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		context.addBeanFactoryPostProcessor(new AProcessor());

		context.register(Car.class);
		context.register(A.class);
		context.refresh();
		System.out.println(context.getBean(A.class));
	}
}
